Background

Data is downloaded from website of gapminder, seehttps://www.gapminder.org/data/.

Variables chosen

Goals

Data exploration

Raw data

1.Government health spending per person

country year spending
Congo, Dem. Rep.  1994 0.19
Myanmar 1994 0.49
Tajikistan 1994 1.27
Georgia 1994 1.51
Ethiopia 1994 1.60
Nepal 1994 1.60
country year spending
China 1994 10.7
China 1996 13.7
China 1998 15.8
China 2000 16.8
China 2002 22.1
China 2004 31.2
year mean
1994 308.3960
1995 317.2138
1996 305.1219
1997 306.8569
1998 318.5945
1999 310.2072
country mean
Afghanistan 2.730333
Albania 52.018750
Algeria 75.437500
Andorra 1450.062500
Angola 42.845000
Antigua and Barbuda 311.687500

2.Life expectancy

Plotting

1.Overall look

  • From the graph, we can have a sense that higher government health spending per person will lead to higher life expectancy, which makes sense to us. In the real life, government health investment can be used to do research on health food to provide people with food with lower calories, fat and sugar. Also, reduced taxed on green food can also keep citizens healthier. Public infrastructure and activities from public park to city marathon also ensure people a healther life, which all increase people expectation for longevity.

4. Relationship between spending and expectancy

  • Put one country you are interested in and in ‘rela()’ function and you will get the comparison of relationship between government health spending per person and life expectancy with other nine countries.

  • China

  • United States